const Base = require('../base.js');

module.exports = class extends Base {
  /// 修改网站配置
  async indexAction() {
    let data = this.post()
    let result = await this.model('config/set').configs(data)
    // 返回数据
    this.json({
      status: 200,
      message: 'success',
      data: result
    })
  }
};
